/* 全局样式 */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    display: flex;
    flex-direction: column;
    height: 100vh;
    background-image: url('../images/停车场图片.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    filter: brightness(90%);
}

/* 顶部标题和注销按钮 */
header {
    background-color: rgba(0, 123, 255, 0.8);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

#logo {
    height: 40px; /* 调整logo高度 */
    margin-right: 15px; /* 在logo和标题之间添加间距 */
    vertical-align: middle; /* 垂直居中 */
}

header h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
}

header button {
    padding: 8px 15px;
    background-color: #f44336;
    border: none;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

header button:hover {
    background-color: #d32f2f;
}

/* 主体布局 */
.container {
    display: flex;
    height: calc(100vh - 60px);
}

/* 左侧导航栏样式 */
nav {
    width: 200px;
    background-color: rgba(0, 123, 255, 0.8);
    color: white;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    margin: 15px 0;
}

nav ul li a {
    text-decoration: none;
    color: white;
    padding: 10px 20px;
    display: block;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

nav ul li a:hover {
    background-color: rgba(0, 86, 179, 0.8);
}

/* 主内容区样式 */
main {
    flex-grow: 1;
    padding: 20px;
    box-sizing: border-box;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

main iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
}